import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/list',
    name: 'list',
    component: () => import(/* webpackChunkName: "about" */ '../views/list.vue')
  },
  {
    path: '/detail',
    name: 'detail',
    component: () => import(/* webpackChunkName: "about" */ '../views/detail.vue')
  },
  {
    path: '/order',
    name: 'order',
    component: () => import('../views/order.vue')
  },
  {
    path: '/paySuccess',
    name: 'paySuccess',
    component: () => import('../views/paySuccess.vue')
  },
  {
    path: '/orderLook',
    name: 'orderLook',
    component: () => import('../views/orderLook.vue')
  },
  {
    path: '/orderDetail',
    name: 'orderDetail',
    component: () => import('../views/orderDetail')
  },
  {
    path: '/address',
    name: 'address',
    component: () => import('../views/address')
  },
  {
    path: '/tel',
    name: 'tel',
    component: () => import('../views/tel')
  },
  {
    path: '/history',
    name: 'history',
    component: () => import('../views/history')
  },
  {
    path: '/info',
    name: 'info',
    component: () => import('../views/info')
  }
]

const router = new VueRouter({
  routes
})

export default router
